﻿using AutoMapper;
using Simple.Services.System.QHSEUser.Models;

namespace Simple.Services;

public class MapperProfile : Profile
{
    public MapperProfile()
    {

        //// Menu
        CreateMap<SysMenu, TreeNode>();

        CreateMap<SysApplication, ApplicationCacheItem>();
        CreateMap<QHSESysDictionary, DictionaryTreeNodeModel>();
        CreateMap<QHSESysDictionary, TreeNode>();
        CreateMap<QHSESysOrganization, TreeNode>();
        CreateMap<QHSESysOverLappingOrganization, TreeNode>();
        CreateMap<QHSESysViolationCategory, TreeNode>();
        CreateMap<QHSESysDangerCategory, TreeNode>();

        // 专有配置
        this.ConfigureMapper();
    }
}
